package com.ptsolusi.ceriacrudwicket.tool;

import org.apache.wicket.RequestCycle;

import com.ptsolusi.ceriacrudwicket.logic.CustomerLogic;
import com.ptsolusi.ceriacrudwicket.logic.ExternalLogic;
import com.ptsolusi.ceriacrudwicket.logic.CeriacrudwicketLogic;

public class Locator {
	
	public static ExternalLogic getExternalLogic()
    {
        CeriacrudwicketApplication app = (CeriacrudwicketApplication)RequestCycle.get().getApplication();
        return app.getExternalLogic();
    }
	
	public static CeriacrudwicketLogic getCeriacrudwicketLogic()
    {
        CeriacrudwicketApplication app = (CeriacrudwicketApplication)RequestCycle.get().getApplication();
        return app.getCeriacrudwicketLogic();
    }
	public static CustomerLogic getCustomerLogic(){
		CeriacrudwicketApplication app = (CeriacrudwicketApplication)RequestCycle.get().getApplication();
		return app.getCustomerLogic();
	}
}
